<form method="post" action="<?php if(isset($path)){ echo Route::url('category-tree',array('path' => $path->getPath())); } ?>">
	<fieldset> <!-- Set class to "column-left" or "column-right" on fieldsets to divide the form into columns -->
		<p>
			<input type="hidden" name="parent_id" value="<?php echo $parent->id; ?>" />
			
			<?php if($category->state() == Doctrine_Record::STATE_CLEAN):?>
				<!-- We only allow to which category has loaded from database  -->
				<input type="hidden" name="id" value="<?php echo $category->id?>"/>
			<?php endif;?>
			
		</p>
		<p>
			<!--  
				<?php //echo $selectbox->render(); ?>
			-->
		</p>				
		<p>
			<label>Name</label>
			<input class="text-input small-input" type="text" id="small-input" value="<?php echo $category->name;?>" name="name" />
		</p>
		
		<p>

			<label>Description</label>
			<input class="text-input large-input" type="text" id="large-input" value="<?php echo $category->description; ?>" name="description" />
		</p>
		
		<p>
			<label>Active ?</label>
			<input type="checkbox" name="active" value="1" <?php if($category->active == 1){echo 'checked';}?> />
		</p>
		
		<p>
			<input class="button" type="submit" value="Submit" />
		</p>
		
	</fieldset>
				
	<div class="clear"></div><!-- End .clear -->				
</form>
